package cn.yunhe.service;

import cn.yunhe.dao.OrderDao;
import cn.yunhe.entity.Order;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class OrderService {
    SqlSession session =SqlSessionFactoryUtil.getSqlSession();
    OrderDao orderDao =session.getMapper(OrderDao.class);

    public List<Order> findAllOrder(){

        List<Order> orders =orderDao.findAllOrder();
        return orders;
    }
}
